package huixue.cn.com.rxapp.http.observer;

import huixue.cn.com.library.observer.SimpleObserver;
import huixue.cn.com.library.util.ToastUtils;
import huixue.cn.com.rxapp.R;

import huixue.cn.com.rxapp.util.UIHelper;
import io.reactivex.disposables.Disposable;

/**
 * Created by gongdongyang on 2018/7/18.
 */

public class CustomObserver<T> extends SimpleObserver<T> {

    @Override
    public void onSubscribe(Disposable d) {

    }

    @Override
    public void onNext(T t) {

    }

    @Override
    public void onError(Throwable e) {
        ToastUtils.showToast(R.string.string_error);
        UIHelper.destroyDialogForLoading();
    }

    @Override
    public void onComplete() {

    }
}
